package chapter08_oop._annotation;

/**
 * ClassName: AnnotationTest
 * Package: chapter08_oop._annotation
 * Description:
 *
 * 注解
 *
 * @Author SherryAn
 * @Create 2025/7/26 15:16
 */
public class AnnotationTest {

}
@MyAnnotation(value = "class")
class Perosn{
    String name;
    @SuppressWarnings("unused") int age=10;

    @MyAnnotation
    public void eat(){
        System.out.println("人吃饭");
    }

}
class Student extends Perosn{

    @Override
    public void eat(){
        System.out.println("学生吃饭");
    }

}